package com.nbicc.dp.modular.exception.custom;

import org.springframework.http.HttpStatus;

public enum CustomExceptionEnum implements ServiceException {

    /**
     * 支付接口问题
     */
    INVALID_WIDGETINSTANCEID(HttpStatus.INTERNAL_SERVER_ERROR , "您点击的控件已不在线");

    private HttpStatus status;

    private String message;

    CustomExceptionEnum(HttpStatus status, String message) {
        this.status = status;
        this.message = message;
    }
    @Override
    public HttpStatus getStatus() {
        return status;
    }


    @Override
    public String getMessage() {
        return message;
    }


}
